package com.testmanager.testmananger.quantitative.domain;

import com.testmanager.testmananger.foundation.domain.AbstractAuditingEntity;
import lombok.Data;
import lombok.experimental.Accessors;

import javax.persistence.*;
import javax.validation.constraints.NotNull;
import java.io.Serializable;

@Entity
@Table(name = "yx_project_info")
@Data
@Accessors(chain = true)
public class ProjectInfoEntity extends AbstractAuditingEntity implements Serializable {
    private static final long serialVersionUID = 6707210445561955176L;
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private long id;
    @Column(name = "project_name",length = 25)
    @NotNull(message = "项目名称不能为空")
    private String name;
}
